#pragma once

#include <QObject>
#include <QMutex>

class PingPong : public QObject
{
	Q_OBJECT

public:
	PingPong(QObject *parent);
	~PingPong();

signals:
	void Ping();

public slots:
	void Pong();
	void Stop();
	void Run();

private:
	bool run;
	QMutex mutex;
};
